#ifndef _ASON_SOCKET_H_
#define _ASON_SOCKET_H_

#define ASON_DEBUG(format,...) printf("[%s,%s,%d]:\033[1;33m" format "\033[0m\n",__FILE__,__FUNCTION__,__LINE__, ##__VA_ARGS__) 


typedef struct _ason_sock_obj_t
{
	int (*create_server)(unsigned short port);
	int (*send)(char *msg,char len,struct sockaddr_in *client_addr);
	int (*rcv)(char *msg,char len,struct sockaddr_in *client_addr);
	int (*destroy)();

}ason_sock_obj_t;

int ason_sock_register(ason_sock_obj_t *sock_obj);

#endif